package com.spic.business.informatization.before_after_work.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.spic.business.informatization.before_after_work.domain.MeetingBeforeAfter;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 班前班后会主Mapper接口
 *
 * @author yangjie
 * @date 2021-12-20
 */
@Mapper
public interface MeetingBeforeAfterMapper extends BaseMapper<MeetingBeforeAfter>
{
    /**
     * 查询班前班后会主
     *
     * @param id 班前班后会主主键
     * @return 班前班后会主
     */
    MeetingBeforeAfter selectMeetingBeforeAfterById(@Param("id") String id, @Param("categoryName") String categoryName);

    /**
     * 查询班前班后会主列表
     *
     * @param meetingBeforeAfter 班前班后会主
     * @return 班前班后会主集合
     */
    List<MeetingBeforeAfter> selectMeetingBeforeAfterList(MeetingBeforeAfter meetingBeforeAfter);

    /**
     * 新增班前班后会主
     *
     * @param meetingBeforeAfter 班前班后会主
     * @return 结果
     */
    int insertMeetingBeforeAfter(MeetingBeforeAfter meetingBeforeAfter);

    /**
     * 修改班前班后会主
     *
     * @param meetingBeforeAfter 班前班后会主
     * @return 结果
     */
    int updateMeetingBeforeAfter(MeetingBeforeAfter meetingBeforeAfter);

    /**
     * 删除班前班后会主
     *
     * @param id 班前班后会主主键
     * @return 结果
     */
    int deleteMeetingBeforeAfterById(String id);

    /**
     * 批量删除班前班后会主
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    int deleteMeetingBeforeAfterByIds(String[] ids);

    MeetingBeforeAfter selectMeetingBeforeAfterByMeetingName(@Param("meetingName") String meetingName);
}
